﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Activities;

namespace TeamDeploy.Activities.Test
{
    [TestClass]
    public class InstallTests
    {
        private TestContext testContextInstance;

        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        [TestMethod]
        public void TestInstallMSI()
        {

            var workflow = new Install();
            workflow.TargetMachine = Environment.MachineName;
            workflow.RemoteExecutePathFilename = @"c:\pstools\psexec2.exe";
            workflow.MSIPathFilename = Path.Combine(@"C:\InstallUninstallTests.msi");
            //workflow.ExtraArgs = "adfs";
            var workflowInvoker = new WorkflowInvoker(workflow);

            workflowInvoker.Invoke();

            Assert.IsTrue(true);
        }
    }
}
